<?php
class SysRoleAction extends CommonAction {

    protected $_str_model           = 'SysRole';
    protected $_arr_search          = array(
                                            'role_name'      => array('LIKE', '%?%', 'str'),
                                            'url'            => array('LIKE', '%?%', 'str'),
                                            'group_name'     => array('LIKE', '%?%', 'str'),
                                            'module_name'    => array('LIKE', '%?%', 'str'),
                                            'menu_name'      => array('LIKE', '%?%', 'str'),
                                            'action_name'    => array('LIKE', '%?%', 'str'),
                                            'level'          => array('EQ', '?', 'int'),
                                            'status'         => array('EQ', '?', 'int'),
                                      );
                                      
    /**
     * Set params
     * global settings, for index, edit, add
     *
     * @param  void
     * @return void
     * @author andy
     */
    public function set_params() {

        $this->assign('arr_level', get_range_array(1, 4));
        $this->assign('arr_display_order', get_range_array(1, 100));
        $this->assign('arr_group_name', explode(',', C('APP_GROUP_LIST')));
    }
}